package com.moli.iov.task.jobhandler;

//import com.moli.iov.down.service.request.IVehicleParamSetRecordRequestService;
//import com.moli.iov.handle.alarm.service.IAlarmInfoTaskRequestService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHander;
import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author fudh
 * @ClassNmme updateBlueToothPwdHandler
 * @date 2019/4/29 14:12
 * @Description: 定时（7天）修改一次蓝牙密码
 */
@Slf4j
@JobHander(value = "updateBlueToothPwdHandler")
@Component
public class UpdateBlueToothPwdHandler extends IJobHandler {

//    @Autowired
//    private IVehicleParamSetRecordRequestService vehicleParamSetRecordRequestService;

    @Override
    public ReturnT<String> execute(String... params) throws Exception {

        try {
//            vehicleParamSetRecordRequestService.modifyBluetoothPwdOfTask();
            log.info("定时修改蓝牙接口调用成功");
            return ReturnT.SUCCESS;
        } catch (Exception e) {
            e.printStackTrace();
            log.error("定时修改蓝牙接口调用失败", e);
            return ReturnT.FAIL;
        }
    }
}
